def show_messages(messages):
    for message in messages:
        print(message)
messages = ['hi', 'world']
show_messages(messages)
def send_messages(send, receive):
    current = send.pop()
    receive.append(current)